<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
header("Content-type:text/html;charset=utf-8");
require_once'/data/lianjie.php';
$conn;
$sql = "select * from forum";
$result = $conn->query($sql);
//print_r($result);
//echo $result->field_count;
echo "<pre>";
//print_r($result->fetch_Array());
print_r($result->fetch_all(MYSQL_ASSOC));